/*
 * listwidget.cpp
 *
 *  Created on: 06.10.2014
 *      Author: Ralph
 */

#include "listwidget.h"

#include <QtWidgets>

ListWidget::ListWidget( const QString & title, QWidget * parent, Qt::WindowFlags flags ) :
    QDockWidget( title, parent, flags )
{
    QFrame* frame = new QFrame( this );
    QVBoxLayout* layout = new QVBoxLayout();

    QHBoxLayout* hl1 = new QHBoxLayout();
    QLabel* label1 = new QLabel( "filter tags", this );
    QLineEdit* lineEdit1 = new QLineEdit( "", this );
    hl1->addWidget( label1 );
    hl1->addWidget( lineEdit1 );
    layout->addLayout( hl1 );

    QHBoxLayout* hl2 = new QHBoxLayout();
    QLabel* label2 = new QLabel( "filter authors", this );
    QLineEdit* lineEdit2 = new QLineEdit( "", this );
    hl2->addWidget( label2 );
    hl2->addWidget( lineEdit2 );
    layout->addLayout( hl2 );

    QListWidget* listWidget = new QListWidget( this );
    layout->addWidget( listWidget );

    frame->setLayout( layout );
    setWidget( frame );
}

ListWidget::~ListWidget()
{
}

